package com.lqy.controller;

import com.lqy.service.Inter.SubstationService;
import com.zzg.entity.Substation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.List;

/**
 * @author lqy
 * @version 1.0.0
 * @ClassName：SubstationController
 * @Description: 分站管理控制器
 * @date 2021/6/21
 **/
@Controller
@RequestMapping("/")
public class SubstationController {

    /**
     * 分站管理接口类
     */
    @Resource
    private SubstationService substationService;

    @RequestMapping("getAllSubstation.action")
    @ResponseBody
    public List<Substation> getAllSubstation(){

        List<Substation> substations=substationService.getSubstation();

        return substations;
    }

}
